package org.karai.frame.core.base;


import android.app.Activity;
import android.widget.Toast;

/**
 * @author karai
 * View  实体接口 用于和Activity交互
 */
public interface IBaseView {

    /**
     * 弹出弹框
     */
    public default void message(String text , Activity activity){
        activity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(activity, text, Toast.LENGTH_SHORT).show();
            }
        });
    }




}
